package com.hwadee.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

/**
 * 
 * @TableName question
 */
@TableName("question")
@Data
@ToString
public class Question {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("content")
    private String content = ""; // 设置默认值为空字符串

    @TableField("type")
    private String type;

    @TableField("category")
    private String category;

    @TableField("difficulty")
    private int difficulty;

    @TableField("score")
    private int score;

    @TableField("explanation")
    private String explanation;

    @TableField("options")
    private String options;

    @TableField("blanks")
    private String blanks;

    @TableField("answer")
    private String answer;

    // Getters and Setters
}